#!/bin/bash
mysql -uroot -p123456 -e "drop user 'slave'@'%';"
mysql -uroot -p123456 -e "CREATE USER 'slave'@'%' IDENTIFIED BY '123456';"
mysql -uroot -p123456 -e "GRANT REPLICATION SLAVE, REPLICATION CLIENT ON *.* TO 'slave'@'%';"
mysql -uroot -p123456 -e "show master status;"|grep mysql-bin &> /mysql_master_status/mysql_master_status.log 
